package org.jeecg.modules.demo.stockmember.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.jeecg.modules.demo.membermanagement.entity.MemberManagement;
import org.jeecg.modules.demo.stockmember.entity.StockMember;
import org.jeecg.modules.demo.stockmember.mapper.StockMemberMapper;
import org.jeecg.modules.demo.stockmember.service.IStockMemberService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Description: 股东会员
 * @Author: jeecg-boot
 * @Date: 2022-01-14
 * @Version: V1.0
 */
@Service
public class StockMemberServiceImpl extends ServiceImpl<StockMemberMapper, StockMember> implements IStockMemberService {
    @Autowired
    private StockMemberMapper stockMemberMapper;

    // 根据股东Id查询
    @Override
    public IPage<MemberManagement> getByStockId(Page<MemberManagement> page, String stockId, String name, String beginTime, String endTime) {
        return stockMemberMapper.getByStockId(page, stockId, name, beginTime, endTime);
    }
}
